﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.System.Dtos.ModuleDataAuthorize
{
    public class ModuleDataAuthorizeCrInput
    {
        /// <summary>
        /// 功能主键
        /// </summary>
        [Required(ErrorMessage = "功能主键不能为空")]
        public string moduleId { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        [Required(ErrorMessage = "字段名称不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 字段注解
        /// </summary>
        [Required(ErrorMessage = "字段注解不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 字段类型
        /// </summary>
        [Required(ErrorMessage = "字段类型不能为空")]
        public string type { get; set; }
        /// <summary>
        /// 条件符号
        /// </summary>
        [Required(ErrorMessage = "条件符号不能为空")]
        public string conditionSymbol { get; set; }
        /// <summary>
        /// 条件内容	
        /// </summary>
        [Required(ErrorMessage = "条件内容不能为空")]
        public string conditionText { get; set; }
        /// <summary>
        /// 字段说明
        /// </summary>
        public string description { get; set; }
    }
}
